package request

type AddHouseReq struct {
	Title    string `json:"title" form:"title" binding:"required"`
	Price    uint   `json:"price" form:"price" binding:"required"`
	Area     uint   `json:"area" form:"area" binding:"required"`
	City     string `json:"city" form:"city" binding:"required"`
	Address  string `json:"address" form:"address" binding:"required"`
	Town     string `json:"town" form:"town" binding:"required"` // 小区名
	HouseImg string `json:"house_img" form:"house_img" binding:"required"`
	VideoUrl string `json:"video_url" form:"video_url" binding:"required"`
	Status   uint   `json:"status" form:"status" binding:"required"` // 房源状态：1：在售 2：已售 3：已下架
}
type GetHousePageListReq struct {
	Id       uint   `json:"id" form:"id"`
	Title    string `json:"title" form:"title"`
	Page     uint   `json:"page" form:"page"`
	PageSize uint   `json:"page_size" form:"page_size"`
}
type GetHouseDetailReq struct {
	Id uint `json:"id" form:"id" binding:"required"`
}
type UpdateHousePriceReq struct {
	Id       uint   `json:"id" form:"id" binding:"required"`
	Title    string `json:"title" form:"title"`
	Price    uint   `json:"price" form:"price" binding:"required"`
	Area     uint   `json:"area" form:"area"`
	City     string `json:"city" form:"city" `
	Address  string `json:"address" form:"address"`
	Town     string `json:"town" form:"town"` // 小区名
	HouseImg string `json:"house_img" form:"house_img"`
	VideoUrl string `json:"video_url" form:"video_url"`
	Status   uint   `json:"status" form:"status"` // 房源状态：1：在售 2：已售 3：已下架

}
